﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Maticsoft.Common
{
    public class rivutils
    {
        public static int getLeverageLevel(double dec)
        {
            if (dec>0.0 && dec < 0.4)
            {
                return 1;
            }
            else if (dec > 0.4 && dec < 0.8)
            {
                return 2;
            }
            else
            {
                return 3;
            }
        }
    }
}
